<template>
  <div class="page-container">
    <el-card>
    <div class="header">
      <div class="left">
        <slot name="left"></slot>
      </div>
      <div class="right">
        <slot/>
      </div>
    </div>
    <div class="prompt">
      <el-alert
        v-if="alertTitle"
        :title="alertTitle"
        type="info"
        show-icon>
      </el-alert>
    </div>
    <div class="conter">
      <slot name="conter"></slot>
    </div>
  </el-card>
  </div>
</template>

<script>
export default {
  name: 'pageTool',
  props: {
    alertTitle: String
  }
}
</script>

<style lang="scss" scoped>
  .page-container{
    .el-card{
      margin: 30px 20px 0 20px;
      .header{
        display: flex;
        justify-content: space-between;
      }
      .prompt {
        margin-top: 20px;
      }   
    }
  }
</style>